<template>
  <div class="app-container">
    <el-container>
      <el-aside width="280px" v-show="!isPreviewFlag">
        <Sidebar/>
      </el-aside>
      <el-main>
        <ChatArea/>
      </el-main>
    </el-container>
  </div>
</template>

<script setup>
import Sidebar from './Sidebar.vue'
import ChatArea from './ChatArea.vue'
import {isPreviewFlag} from "@/api/ai/ai.js";
</script>

<style scoped>
.app-container {
  height: 94vh;
  display: flex;
  padding: 0 0 !important;
}

.el-container {
  height: 100%;
}

.el-aside {
  background-color: #f5f7fa;
  border-right: 1px solid #e6e6e6;
  margin-bottom: 0;
}

.el-main {
  padding: 0;
  background-color: #fff;
}
</style>